package com.alvin.myspringcloudzuul;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "main-project", fallback = FeignMainProjectServiceCallBack.class)
public interface FeignMainProjectService {

    @RequestMapping("/hello")
    public String hello();
}
